package com.ruoyi.building.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 团购列表对象 group_purchase
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
public class GroupPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 团购ID */
    private Long groupPurchaseId;

    /** 楼盘ID */
    @Excel(name = "楼盘ID")
    private Long propertyProjectId;

    /** 团购标题 */
    @Excel(name = "团购标题")
    private String title;

    /** 团购描述 */
    @Excel(name = "团购描述")
    private String description;

    /** 起价 */
    @Excel(name = "起价")
    private BigDecimal startPrice;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private BigDecimal discountRate;

    /** 团购开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "团购开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 团购结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "团购结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createUserId;

    public void setGroupPurchaseId(Long groupPurchaseId) 
    {
        this.groupPurchaseId = groupPurchaseId;
    }

    public Long getGroupPurchaseId() 
    {
        return groupPurchaseId;
    }

    public void setPropertyProjectId(Long propertyProjectId) 
    {
        this.propertyProjectId = propertyProjectId;
    }

    public Long getPropertyProjectId() 
    {
        return propertyProjectId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStartPrice(BigDecimal startPrice) 
    {
        this.startPrice = startPrice;
    }

    public BigDecimal getStartPrice() 
    {
        return startPrice;
    }

    public void setDiscountRate(BigDecimal discountRate) 
    {
        this.discountRate = discountRate;
    }

    public BigDecimal getDiscountRate() 
    {
        return discountRate;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("groupPurchaseId", getGroupPurchaseId())
            .append("propertyProjectId", getPropertyProjectId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("startPrice", getStartPrice())
            .append("discountRate", getDiscountRate())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createUserId", getCreateUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
